package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mall.common.core.domain.BaseEntity;

/**
 * 商品推荐对象 pro_product_recommended
 *
 * @author zhonglin
 * @date 2020-05-24
 */
public class ProProductRecommended
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 商品推荐 id
   */
  private Long productRecommendedId;

  /**
   * 商品id
   */
  @Excel(name = "商品id")
  private Long productId;

  /**
   * 显示顺序
   */
  @Excel(name = "显示顺序")
  private Long orderNum;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  public void setProductRecommendedId(Long productRecommendedId) {

    this.productRecommendedId = productRecommendedId;
  }

  public Long getProductRecommendedId() {

    return productRecommendedId;
  }

  public void setProductId(Long productId) {

    this.productId = productId;
  }

  public Long getProductId() {

    return productId;
  }

  public void setOrderNum(Long orderNum) {

    this.orderNum = orderNum;
  }

  public Long getOrderNum() {

    return orderNum;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("productRecommendedId", getProductRecommendedId())
                                                                    .append("productId", getProductId())
                                                                    .append("orderNum", getOrderNum())
                                                                    .append("status", getStatus())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
